﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Kindohm.KSynth.UI
{
    public class ButtonPoint
    {
        public int X;
        public int Y;

        public ButtonPoint() { }
        public ButtonPoint(int x, int y)
        {
            this.X = x;
            this.Y = y;
        }

        public override bool Equals(object obj)
        {
            return ((ButtonPoint)obj).X == this.X
                && ((ButtonPoint)obj).Y == this.Y;
        }

        public override int GetHashCode()
        {
            return this.X * this.Y;
        }
    }
}
